package com.example.sh_crosses;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.widget.Button;

import com.example.sh_crosses.db.RecordDao;
import com.example.sh_crosses.game.GameActivity;
import com.example.sh_crosses.game.StatMent;
import com.example.sh_crosses.game.YxglAcitivty;

import java.util.List;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        Button btnPlay = findViewById(R.id.play);
        btnPlay.setOnClickListener(v->startActivity(new Intent(MainActivity.this, GameActivity.class)));

        Button btnStat = findViewById(R.id.stat);
        btnStat.setOnClickListener(v->startActivity(new Intent(MainActivity.this, StatMent.class)));

        Button btnVideo = findViewById(R.id.yxgl);
        btnVideo.setOnClickListener(v->startActivity(new Intent(MainActivity.this, YxglAcitivty.class)));

    }

    @Override
    public void onPause() {
        super.onPause();
        overridePendingTransition(R.anim.slide_in_from_right, R.anim.slide_out_from_right);
    }

}